﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HospitalSelect.aspx.cs"
    Inherits="HZ.DrugTrade.Web.Admin.DrugLibManage.HospitalSelect" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>选择医疗机构</title>
    <link rel="stylesheet" type="text/css" href="../../lib/style/global.css" />
    <link rel="stylesheet" type="text/css" href="../../lib/scripts/build/fonts/fonts-min.css" />
    <link rel="stylesheet" type="text/css" href="../../lib/scripts/build/container/assets/skins/sam/container.css" />
    <link rel="stylesheet" type="text/css" href="../../lib/scripts/build/resize/assets/skins/sam/resize.css" />

    <script type="text/javascript" src="../../lib/scripts/Common.js"></script>
    <script type="text/javascript" src="../../lib/scripts/global.js"></script>
    <script type="text/javascript" src="../../lib/scripts/PCASClass.js"></script>

    <script type="text/javascript" language="javascript">
        function addHospitalInfo(HospitalInfo) {
            opener.insertHospitalInfo(HospitalInfo);
            window.close();
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <table class="querylist">
        <tr>
            <td align="right">
                <asp:Label ID="Label2" runat="server" Text="医疗机构名称："></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="txtHospitalName" runat="server" Width="120px"></asp:TextBox>
            </td>
            <td rowspan="2">
                <hz:HzButton ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" CssClass="btn" />
            </td>
        </tr>
        <tr>
            <td align="right">
                所在地区：
            </td>
            <td align="left">
                <asp:DropDownList ID="ddlProvice" runat="server">
                    <asp:ListItem Value="">所在省</asp:ListItem>
                </asp:DropDownList>
                &nbsp;<asp:DropDownList ID="ddlCity" runat="server">
                    <asp:ListItem Value="">所在城市</asp:ListItem>
                </asp:DropDownList>
                &nbsp;<asp:DropDownList ID="ddlCountry" runat="server">
                    <asp:ListItem Value="">所在区县</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
    </table>
    <asp:GridView ID="gvwHospitalList" class="mainlist" runat="server" AutoGenerateColumns="False"
        DataKeyNames="HospitalID" EmptyDataText="暂无符合要求的数据！">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %></ItemTemplate>
                <HeaderStyle Width="40px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="医疗机构名">
                <ItemTemplate>
                    <a href="javascript:addHospitalInfo('<%# Eval("HospitalID") %>|<%# Eval("HospitalName") %>')">
                        <%# Eval("HospitalName")%></a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="AreaName" HeaderText="地区" ReadOnly="true" />
        </Columns>
    </asp:GridView>
     <div class="page">
    <webdiyer:AspNetPager class="page" ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged"
        >
    </webdiyer:AspNetPager>
    </div>
    <div class="listip">
        <ul>
            <li>提示:<span>直接点击医疗机构名可以选择医疗机构。</span></li>
        </ul>
    </div>

    <script type="text/javascript" language="javascript">
        new PCAS("ddlProvice","ddlCity","ddlCountry"<%=GetDefaultAreaString() %>);
    </script>

    </form>
</body>
</html>
